<template>
    <FormItem :label="`${itemData.label}：`" :prop="itemData.name" :label-for="itemData.name" :rules='itemData.rules'>
        <RadioGroup v-model="formData[itemData.name]" @on-change="handleChange">
            <Radio :disabled="itemData.disabled" :label="item.value" :key="index" v-for="(item, index) in itemData.radioArr"> {{ item.label }} </Radio>
        </RadioGroup>
    </FormItem>
</template>
<script>
    export default {
        props: {
            itemData: {
                type: Object
            },
            formData: {
                type: Object
            }
        },
        data () {
            return {
                dataList: []
            }
        },
        created () {},
        methods: {
            // 改变选中值
            handleChange (value) {
                this.$emit('handleChangeFormData', this.formData);
            }
        }
    }
</script>
